﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace UnitOfWork.Data.Core
{
    /// <summary>
    /// 完整的数据操作接口
    /// 完整的接口中，包括两个事件
    /// </summary>
    public interface ICompleteRepository<T> :
        IRepository<T>,
        IExtensionRepository<T>
         where T : class
    {
        /// <summary>
        /// Occurs after data saved
        /// </summary>
        event Action<SavedEventArgs> AfterSaved;

        /// <summary>
        /// Occurs before data saved
        /// </summary>
        event Action<SavedEventArgs> BeforeSaved;

    }
}
